package com.gangan.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author jobob
 * @since 2019-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tl_department")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 部门自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门姓名
     */
    private String name;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    /**
     * 父亲部门
     */
    private Integer parentId;


}
